const http = require('../../utils/http');

function getSearchMusic(keyword, pageindex, callbackcount, callback) {


    // /mini/getProductList/1/10

    const body = {
        categoryId: keyword,
    };
    console.log(pageindex)
    console.log(callbackcount)
    console.log(keyword)
    http._post("/mini/getProductList/" + pageindex + '/' + callbackcount, body).then(res => {
        if (res.code == 200) {
            console.log(res.result);
            callback(res.result);
        }

    }).catch(e => {
        console.log(e)
    });

}

module.exports = {
    getSearchMusic: getSearchMusic
}